// const baseUrl1 = 'http://192.168.0.104:8085'
const baseUrl = 'http://116.62.160.18:8092'

const api = {
  // 城市项目列表
  cityProjectList: baseUrl + '/device-operation-consumer/project/findAll',
  // 城市信息
  city: {
    info: baseUrl + '/device-operation-consumer/cityInfo/queryByCondition',
    add: baseUrl + '/device-operation-consumer/cityInfo/saveOrUpdate',
    delete: baseUrl + '/device-operation-consumer/cityInfo/delete',
    upLoad: baseUrl + '/device-operation-consumer/cityInfo/getExcel'
  },
  // 厂商信息
  factory: {
    info: baseUrl + '/device-operation-consumer/factory/queryByCondition',
    add: baseUrl + '/device-operation-consumer/factory/saveOrUpdate',
    delete: baseUrl + '/device-operation-consumer/factory/delete',
    upLoad: baseUrl + '/device-operation-consumer/factory/getExcel'
  },
  // 产品信息
  product: {
    info: baseUrl + '/device-operation-consumer/product/queryByCondition',
    add: baseUrl + '/device-operation-consumer/product/saveOrUpdate',
    delete: baseUrl + '/device-operation-consumer/product/delete',
    upLoad: baseUrl + '/device-operation-consumer/product/getExcel'
  },
  // 报修原因信息
  repair: {
    info: baseUrl + '/device-operation-consumer/repairInfo/queryByCondition',
    add: baseUrl + '/device-operation-consumer/repairInfo/saveOrUpdate',
    delete: baseUrl + '/device-operation-consumer/repairInfo/delete',
    upLoad: baseUrl + '/device-operation-consumer/repairInfo/getExcel'
  },
  productType: baseUrl + '/device-operation-consumer/machinepurchase/queryType',
  // 项目详情
  purchase: {
    // 获取项目
    projectList: baseUrl + '/device-operation-consumer/machinepurchase/getInfo',
    // 获取和搜索
    projectData: baseUrl + '/device-operation-consumer/machinepurchase/queryByCondition',
    // 新增
    addProjectData: baseUrl + '/device-operation-consumer/machinepurchase/insert',
    // 删除
    deleteProjectData: baseUrl + '/device-operation-consumer/machinepurchase/deleteItem'
  },
  transportation: {
    // 获取项目
    projectList: baseUrl + '/device-operation-consumer/machineTransport/getInfo',
    // 获取和搜索
    projectData: baseUrl + '/device-operation-consumer/machineTransport/queryByCondition',
    // 新增
    addProjectData: baseUrl + '/device-operation-consumer/machineTransport/saveOrUpdate',
    // 删除
    deleteProjectData: baseUrl + '/device-operation-consumer/machineTransport/delete'
  },
  check: {
    // 机具验收
    projectList: baseUrl + '/device-operation-consumer/machineInspector/getInfo',
    // 获取和搜索
    projectData: baseUrl + '/device-operation-consumer/machineInspector/findBy',
    // 新增
    addProjectData: baseUrl + '/device-operation-consumer/machineInspector/add',
    // 新增
    changeProjectData: baseUrl + '/device-operation-consumer/machineInspector/update',
    // 删除
    deleteProjectData: baseUrl + '/device-operation-consumer/machineInspector/delete'
  },
  install: {
    // 机具项目
    projectList: baseUrl + '/device-operation-consumer/machineInstall/getInfo',
    // 获取和搜索
    projectData: baseUrl + '/device-operation-consumer/machineInstall/queryByCondition',
    // 新增
    addProjectData: baseUrl + '/device-operation-consumer/machineInstall/saveOrUpdate',
    // 删除
    deleteProjectData: baseUrl + '/device-operation-consumer/machineInstall/delete'
  },
  maintain: {
    // 机具项目
    projectList: baseUrl + '/device-operation-consumer/machineRepair/getInfo',
    // 获取和搜索报修
    projectRepaireData: baseUrl + '/device-operation-consumer/machineRepair/queryByCondition',
    // 获取和搜索核实
    projectCheckData: baseUrl + '/device-operation-consumer/machineRepair/queryByConditionRJ',
    // 报修新增
    addRepairProjectData: baseUrl + '/device-operation-consumer/machineRepair/saveOrUpdate',
    // 核实新增
    addCheckProjectData: baseUrl + '/device-operation-consumer/machineCheck/saveOrUpdate',
    // 报修删除
    deleteRepaireProjectData: baseUrl + '/device-operation-consumer/machineRepair/deleteByFn',
    // 核实删除
    deleteCheckProjectData: baseUrl + '/device-operation-consumer/machineCheck/delete'
  },
  recycle: {
    // 机具项目
    projectList: baseUrl + '/device-operation-consumer/machineRecover/getInfo',
    // 获取和搜索
    projectData: baseUrl + '/device-operation-consumer/machineRecover/queryByCondition',
    // 新增
    addProjectData: baseUrl + '/device-operation-consumer/machineRecover/saveOrUpdate',
    // 删除
    deleteProjectData: baseUrl + '/device-operation-consumer/machineRecover/delete'
  }
}
export default api
